import { createSlice } from "@reduxjs/toolkit";

const initialState = {
  breadcrumb: [], // 面包屑数据
  testList: [], // 测试列表
}

const appSlice = createSlice({
  name: 'app',
  initialState,
  reducers: {
    setBreadcrumb(state, action) {
      state.breadcrumb = action.payload
    }
  }
})

export const { setBreadcrumb } = appSlice.actions
export default appSlice.reducer